<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        {{now}}
        {{now}}
        {{time()}}
        {{time()}}
        <button @click="">点击</button>
    </div>
<script src="../js/vue.js"></script>
<script>
    let app = new Vue({
        el: "#app",
        data: {

        },
        computed: {
            now: function () {
                console.log("now");
                return Date.now()
            }
        },
        methods: {
            time() {
                console.log("time");
                return Date.now()
            }
        }
    })
</script>
</body>
</html>